package com.ichir.projects.uiframework.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="bean")
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlBean {

	@XmlAttribute(name="name")
	@XmlID
	private String name;
	
	@XmlAttribute(name="class")
	private String classname;

	@XmlElement(name="property")
	private List<XmlProperty> properties;
	
	public String getClassname() {
		return classname;
	}

	public void setClassname(String classname) {
		this.classname = classname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<XmlProperty> getProperties() {
		return properties;
	}

	public void setProperties(List<XmlProperty> properties) {
		this.properties = properties;
	}
	
}
